package rootpackege.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/page" , method = RequestMethod.GET)
public class loginController {
	
	@RequestMapping(value = "/index" , method = RequestMethod.GET)
	public String index(){
		
		System.out.println("index ..........");
		return "index";
	}
	
	//登录页面
	@RequestMapping(value = "/login" , method = RequestMethod.GET)
	public String login(){
		
		System.out.println("login ..........");
		return "login";
	}
	//需要登录权限
	@RequestMapping(value = "/home" , method = RequestMethod.GET)
	public String home(){
		
		System.out.println("home ..........");
		return "home";
	}
}
